# 一行输出的星号个数和行号是相等的
# i = 0
# while i <= 4:
#     j = 0
#     while j <= i:
#         print('*', end='')
#         j += 1
#     print()
#     i += 1

# *
# **
# ***
# ****
# *****

# 循环变量
# line = 1
# # 循环判断
# while line <= 5:
#     # 循环体
#     # 循环变量
#     n = 1
#     # 循环判断
#     while n <= line:
#         # 循环体
#         print("*", end="")
#         # 循环变量发生变化
#         n += 1
#     print()
#     # 循环变量的变化
#     line += 1

# 打印三角形
i = 1

while i <= 5:
    j = 1
    while j <= i:
        print('*', end='')
        j += 1
    i += 1
    print('\t')
